/*    */ package server.console.groups.datamanage;
/*    */ 
/*    */ import com.alee.laf.panel.WebPanel;
/*    */ import com.alee.laf.rootpane.WebFrame;
/*    */ import com.alee.laf.tabbedpane.TabbedPaneStyle;
/*    */ import com.alee.laf.tabbedpane.WebTabbedPane;
/*    */ import java.awt.Component;
/*    */ import java.awt.Dimension;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import server.console.Start;
/*    */ 
/*    */ public class DataManagePanel extends WebFrame {
/* 14 */   private static DataManagePanel instance = null;
/* 15 */   private final List<TabbedPane> tabbedPanes = new ArrayList<>();
/*    */   
/*    */   public DataManagePanel() {
/* 18 */     setPreferredSize(new Dimension(1366, 800));
/* 19 */     setTitle("数据管理界面");
/* 20 */     setIconImage(Start.getMainIcon().getImage());
/*    */     
/* 22 */     WebTabbedPane tabbedPane = new WebTabbedPane()
/*    */       {
/*    */         public Dimension getPreferredSize() {
/* 25 */           Dimension ps = super.getPreferredSize();
/* 26 */           ps.width = 150;
/* 27 */           return ps;
/*    */         }
/*    */       };
/* 30 */     tabbedPane.setTabbedPaneStyle(TabbedPaneStyle.attached);
/* 31 */     this.tabbedPanes.add(PlayerPane.getInstance(this));
/* 32 */     this.tabbedPanes.add(new DropPane(this));
/* 33 */     this.tabbedPanes.add(new CashShopPane(this));
/* 34 */     this.tabbedPanes.add(new NPCShopPane(this));
/* 35 */     this.tabbedPanes.add(new GuildPane(this));
/* 36 */     this.tabbedPanes.add(new FishingPane(this));
/* 37 */     WebPanel webPanel = new WebPanel(false, (Component)tabbedPane);
/* 38 */     webPanel.setPaintFocus(true);
/* 39 */     add((Component)tabbedPane);
/* 40 */     settupTabbedPane(tabbedPane);
/*    */   }
/*    */   
/*    */   public static DataManagePanel getInstance() {
/* 44 */     if (instance == null) {
/* 45 */       instance = new DataManagePanel();
/*    */     }
/* 47 */     return instance;
/*    */   }
/*    */   
/*    */   private void settupTabbedPane(WebTabbedPane webTabbedPane) {
/* 51 */     for (TabbedPane tabbedPane : this.tabbedPanes)
/* 52 */       webTabbedPane.addTab(tabbedPane.getTitle(), tabbedPane.getPreview()); 
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\console\groups\datamanage\DataManagePanel.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */